package com.cy.store.mapper;

import com.cy.store.entity.District;

import java.util.List;

// 地区
public interface DistrictMapper {

    /**
     * 根据父地区（parent）查询数据
     *
     * select * from t_dict_district where parent = #{parent} order by code asc
     */
    List<District> findByParent(String Parent);


    /**
     * 根据code查询数据
     * select name from t_dict_district where code = #{code}
     */
    String findNameByCode(String code);
}
